package com.toplabs.unashu.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.toplabs.unashu.entity.Type;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DetailedBlog {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String firstPicture;
    private String flag;
    private String title;
    private String render;
    private Integer views;
    private Date createTime;
    private boolean status;
    private boolean commentable;
    private boolean shareStatement;
    private boolean appreciation;
    private String nickname;
    private String avatar;
    private String tagNames;
    private List<String> tags = new ArrayList<>();
    private List<Type> types = new ArrayList<>();
}
